import { View } from '@tarojs/components';
import Card from 'components/CodeCard'
import s from './index.module.scss'
import code from './code.md'

export default function index() {
  return(
    <View>
      <Card
        title='perspective'
        desc='perspective定义子元素获得的透视效果，子元素为 3d 元素才有效，像素值是指定子元素到视图的距离，意思就是 px 值越小，离屏幕越近，px 值越大，离屏幕越远'
        renderCode={() => (
          <wemark md={code} link highlight type='wemark' />
        )}
      >
        <View className={s.container}>
          <View className={s.box}>mybox mybox mybox mybox mybox mybox</View>
        </View>
      </Card>
    </View>
  )
}